﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ReportsMapUserControl.xaml.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Defines the ReportsMapUserControl type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Silverlight.UserControls
{
    using Microsoft.Maps.MapControl.Core;

    using MVVM.ViewModels;

    /// <summary>
    /// Defines the ReportsMapUserControl type.
    /// </summary>
    public partial class ReportsMapUserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ReportsMapUserControl"/> class.
        /// </summary>
        public ReportsMapUserControl()
        {
            InitializeComponent();

            map.MapForeground.Copyright.Attributions.Add(new AttributionInfo("Spenta Consulting"));
            
            var viewModel = (ReportsViewModel)LayoutRoot.DataContext;
            viewModel.ViewMap = map;
            viewModel.ReportBubble = ReportBubbleCanvas;
        }
    }
}
